<?php 

function logthis($str) {
	global $logfile;
	if($logfile)
		fwrite($logfile,"$str\n");
}

?>